package com.samphanie.common.constants;

import com.samphanie.common.utils.StringPool;

import static com.samphanie.common.constants.SystemConstants.*;

/**
 * @author ZSY
 * @email 1451691457@qq.com
 */
public class SysConfigKeyConstants {

    public static String getSmsTemplateKey(String key) {
        return "SMS:TEMPLATE:" + key;
    }

    public static String getClientKey(String clientId) {
        return CLIENT_TABLE + ":" + clientId;
    }

    /**
     * Redis所有Keys
     */
    public static String getSysConfigKey(String key) {
        return "sys:config:" + key;
    }

    public static String getUserBlackKey(String client, String username) {
        return client + StringPool.COLON + SystemConstants.USER_BLACKLIST_PREFIX + username;
    }
}
